/**
 * @Author: 焦质晔
 * @Date: 2019/6/20
 * @Last Modified by:   焦质晔
 * @Last Modified time: 2019-06-20 15:45:00
 */
import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 获取专用工具采购入库列表
export const getInStorageList = params => axios.get(`${SERVER.TOOLMANAGEMENT}/recevingBill/getRecevingBill`, {
  params
});

// 获取工具列表
export const getToolsList = params => axios.get(`${SERVER.TOOLMANAGEMENT}/recevingBill/getToolsList`, {
  params
});

// 获取入库单工具明细
export const getRecevingBillDetail = params => axios.get(`${SERVER.TOOLMANAGEMENT}/recevingBill/getRecevingBillDetail`, {
  params
});

// 删除入库单
export const deleteRecevingBill = params => axios.post(`${SERVER.TOOLMANAGEMENT}/recevingBill/deleteRecevingBill`, params);

// 删除工具
export const deleteTools = params => axios.post(`${SERVER.TOOLMANAGEMENT}/recevingBill/deleteTools`, params);

// 保存退库单
export const saveRecevingBill = params => axios.post(`${SERVER.TOOLMANAGEMENT}/recevingBill/saveRecevingBill`, params);

// 修改工具状态
export const updateToolsStatus = params => axios.post(`${SERVER.TOOLMANAGEMENT}/recevingBill/updateToolsStatus`, params);

// 处理库存
export const dealStock = params => axios.post(`${SERVER.TOOLMANAGEMENT}/recevingBill/dealStock`, params);

// 参数查询
export const doSearch = params => axios.post(`${SERVER.DMSCLOUD_BASEDATA}/params/doSearch`, params);

// 获取采购入库单打印信息
export const printInStorageBill = params => axios.get(`${SERVER.TOOLMANAGEMENT}/recevingBill/printInStorageBill`, {
  params
});
